<!--生育史-->
<div class="td-patient-me-medical-record-birth-history">
  <div class="btn-insert">
    <el-button type="primary" size="mini" @click="btnModify();">新增</el-button>
  </div>
  <div class="table-box">

    <table v-for="(item,index) in birthHistoryList" :key="index">
      <tr>
        <td width="55%">受孕/移植年月：</td>
        <td>
          {{item.PregnancyTime.split('T')[0]}}
        </td>
      </tr>
      <tr>
        <td>受孕方式：</td>
        <td>
          <span v-if="item.PregnancyWay===0">自然受孕</span>
          <span v-if="item.PregnancyWay===1">人工授精</span>
          <span v-if="item.PregnancyWay===2">试管婴儿</span>
        </td>
      </tr>
      <tr>
        <td>是否生育：</td>
        <td>
          <span v-if="item.IsChildbed===0">足月产</span>
          <span v-if="item.IsChildbed===1">早产</span>
          <span v-if="item.IsChildbed===2">流产</span>
        </td>
      </tr>

      <tr v-if="item.IsChildbed!==2">
        <td>孕周</td>
        <td>{{item.PregnancyWeek}}周</td>
      </tr>
      <tr v-if="item.IsChildbed!==2">
        <td>顺/剖腹产</td>
        <td>
          <span v-if="item.ChildbearingWay===0">顺产</span>
          <span v-if="item.ChildbearingWay===1">剖腹产</span>
          <span v-if="item.ChildbearingWay===2">顺产转剖腹产</span>
        </td>
      </tr>

      <tr v-if="item.IsChildbed===2">
        <td>胚胎：</td>
        <td>{{item.EmbryoStatus}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('停止发育'))">
        <td>停止发育孕周：</td>
        <td>{{item.StopDevelopment_Week}}周</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('胎膜早破'))">
        <td>胎膜早破孕周：</td>
        <td>{{item.PROM_Week}}周</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('胎儿生长受限'))">
        <td>生长受限孕周：</td>
        <td>{{item.FGR_Week}}周</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('子痫前期'))">
        <td>子痫前期孕周：</td>
        <td>{{item.Preeclampsia_Week}}周</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('死胎'))">
        <td>死胎孕周：</td>
        <td>{{item.DeadFetus_Week}}周</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && (item.EmbryoStatus && item.EmbryoStatus.split(',').includes('畸形儿'))">
        <td>畸形儿孕周：</td>
        <td>{{item.OAF_Week}}周</td>
      </tr>

      <tr v-if="item.IsChildbed===2 && !showItem(item.EmbryoStatus)">
        <td>胚胎情况：</td>
        <td>
          <span v-if="item.EmbryoDetail===0">无卵黄囊+无胎芽+无胎心</span>
          <span v-if="item.EmbryoDetail===1">有卵黄囊+无胎芽+无胎心</span>
          <span v-if="item.EmbryoDetail===2">有卵黄囊+有胎芽+无胎心</span>
          <span v-if="item.EmbryoDetail===3">有卵黄囊+有胎芽+有胎心</span>
        </td>
      </tr>
      <tr v-if="item.IsChildbed===2 && !showItem(item.EmbryoStatus)">
        <td>胎染：</td>
        <td>
          <span v-if="item.EmbryoDye===0">无</span>
          <span v-if="item.EmbryoDye===1">正常</span>
          <span v-if="item.EmbryoDye===2">异常</span>
        </td>
      </tr>
      <tr v-if="item.IsChildbed===2 || item.Exception && showItem(item.EmbryoStatus)">
        <td>异常情况：</td>
        <td>{{item.Exception}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2 || item.KeepPregnantMedicine && !showItem(item.EmbryoStatus)">
        <td>保胎药：</td>
        <td>{{item.KeepPregnantMedicine}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2 && !showItem(item.EmbryoStatus)">
        <td>其它用药：</td>
        <td>{{item.OtherMedicine}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2 || item.Hematoncus && showItem(item.EmbryoStatus)">
        <td>血肿情况：</td>
        <td>{{item.Hematoncus}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2 || item.Pathology && showItem(item.EmbryoStatus)">
        <td>病理情况：</td>
        <td>{{item.Pathology}}</td>
      </tr>
      <tr v-if="item.IsChildbed===2">
        <td>结局：</td>
        <td>
          <span v-if="item.EmbryoEnding===0">主动人流</span>
          <span v-if="item.EmbryoEnding===1">未着床</span>
          <span v-if="item.EmbryoEnding===2">生化妊娠</span>
          <span v-if="item.EmbryoEnding===3">完全流产</span>
          <span v-if="item.EmbryoEnding===4">药物流产</span>
          <span v-if="item.EmbryoEnding===5">清宫</span>
          <span v-if="item.EmbryoEnding===6">宫外孕</span>
          <span v-if="item.EmbryoEnding===7">葡萄胎</span>
          <span v-if="item.EmbryoEnding===8">引产</span>
          <span v-if="item.EmbryoEnding===9">刨宫产</span>
        </td>
      </tr>
      <tr v-if="item.IsChildbed===2">
        <td>医院：</td>
        <td>{{item.Hospital}}</td>
      </tr>
      <tr>
        <td colspan="2">
          <el-button type="warning" size="mini" @click.native="btnModify(item);">变更</el-button>
        </td>
      </tr>
    </table>
  </div>

  <div class="btn-insert">
    <el-button size="mini" @click.native="btnPrev();">上一步</el-button>
    <el-button type="primary" size="mini" @click="btnModify();">新增</el-button>
    <el-button size="mini" @click.native="btnNext();">下一步</el-button>
  </div>
</div>
